package com.itheima.d4_abstract_template_method.example;

/**
 * 咨询
 */
public class Consultant extends People {
    private int number;

    public Consultant() {
    }

    public Consultant(String name, int age, int number) {
        super(name, age);
        this.number = number;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }


    @Override
    public void work() {
        System.out.println("我的工作主要是咨询，已经为" + number + "位同学提供过课程咨询服务！");
    }
}
